function isAlarm(num) {
  return (num & 4) === 4
}

function isWarning(num) {
  return !isAlarm(num) && (num & 2) === 2;
}

function isNormal(num) {
  return (num & 4) !== 4 && (num & 2) !== 2;
}

export {
  isAlarm,
  isWarning,
  isNormal
}
